
(function () {
    var core = ecui,
        util = core.util,
        ui = ecui.ui,
        dom = ecui.dom;

    Object.assign(
        NS.data,
        {
        }
    );
    Object.assign(
        NS.ui,
        {
        }
    );
    ecui.esr.addRoute('edit', {
        model: function (context, callback) {
            var model = [];
            if (context.id) {
                model.push('detail@GET /erp-management/expense/detail/${id}');
            }
            ecui.esr.request(model, callback, function () {
                return true;
            });
            return false;
        },
        weight: 3,
        frame: true,
        onbeforerequest: function (context) {
        },
        onbeforerender: function (context) {
            context.num = mao.util.getTimeRandom();
        },
        onafterrender: function (context) {
        }
    });
}());

